#include <iostream>
#include <vector>
using namespace std;

class Solution
{
public:
    int maxCount(int m, int n, vector<vector<int>> &ops)
    {
        int row = ops.size();
        for (int i = 0; i < row; i++)
        {
            m = min(ops[i][0], m);
            n = min(ops[i][1], n);
        }
        return m * n;
    }
};